﻿/**********************************天使物流*******************************************
* 功能描述:菜单
* 作者:孟帅龙
* 时间:2022/1/7
* 
**********************************天使物流*******************************************/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TianShiProject.Models.System.Menus;
using Volo.Abp.Application.Services;

namespace TianShiProject.System.Menus
{
    public class MenuService : ApplicationService
    {
        public readonly IMenuRepository _menuRepository;
        public MenuService(IMenuRepository menuRepository)
        {
            _menuRepository = menuRepository;
        }

        #region 递归菜单
        /// <summary>
        /// 递归菜单
        /// </summary>
        /// <returns></returns>
        public async Task<List<MenuDto>> GetMenus()
        {
            return await _menuRepository.GetMenus();
        } 
        #endregion
    }
}
